//
//  NSMutableArray+PythonTests.m
//  CYTool
//
//  Created by baidu on 7/4/16.
//  Copyright © 2016 caoyuan02. All rights reserved.
//

#import <XCTest/XCTest.h>
#import "CYTool.h"

@interface NSMutableArray_PythonTests : XCTestCase
@property (nonatomic, strong) NSMutableArray *ary;
@end

@implementation NSMutableArray_PythonTests

- (void)setUp {
    [super setUp];
    // Put setup code here. This method is called before the invocation of each test method in the class.
    self.ary = [[NSMutableArray alloc] initWithArray:@[@"1", @"2", @"3"]];
}

- (void)tearDown {
    // Put teardown code here. This method is called after the invocation of each test method in the class.
    [super tearDown];
    self.ary = nil;
}
#pragma mark pyAppend

- (void)testAppend0 {
    self.ary.pyAppend(@"4");
    NSLog(@"🌞👉%@👈🌞",[NSString stringWithFormat:@"%@", self.ary]);
    NSMutableArray *ary = [[NSMutableArray alloc] initWithArray:@[@"1", @"2", @"3",@"4"]];
    XCTAssertEqualObjects(self.ary, ary);
}

- (void)testAppend1 {
    self.ary.pyAppend(@[@"4",@"5"]);
    NSLog(@"🌞👉%@👈🌞",[NSString stringWithFormat:@"%@", self.ary]);
    NSMutableArray *ary = [[NSMutableArray alloc] initWithArray:@[@"1", @"2", @"3",@"4", @"5"]];
    XCTAssertEqualObjects(self.ary, ary);
}

- (void)testAppend2 {
    self.ary.pyAppend(nil);
    
    NSLog(@"🌞👉%@👈🌞",[NSString stringWithFormat:@"%@", self.ary]);
    NSMutableArray *ary = [[NSMutableArray alloc] initWithArray:@[@"1", @"2", @"3",[NSNull null]]];
    XCTAssertEqualObjects(self.ary, ary);
}

#pragma mark pyPop

#pragma mark pyPopIndex

#pragma mark pyRemove

#pragma mark pyIndex

#pragma mark pyInsert

#pragma mark pyRange

#pragma mark pyReplace

#pragma mark pyReverse

#pragma mark pySorted

#pragma mark forEachInArray

#pragma mark forEachInArrayRange


@end
